package com.hsylient.javase.design.pattern.observer.java8;

import java.util.Observable;
import java.util.Observer;

public class NewsSubscriber implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        System.out.println(arg);
    }

}
